home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-10-23 | 4.3 KB | [ TEXT/KAHL]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: drvrincludes.h
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Sat Oct 23 17:55:02 1993, modified Sat Oct 23 17:55:02 1993, creator Think C, type ASCII, 3827 bytes "drvrincludes.h" , at 0xf73 346 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ KAHL]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0e 64 72 76 72 69 6e | 63 6c 75 64 65 73 2e 68 |..drvrin|cludes.h| |00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......| |00000050| 00 00 00 00 00 0e f3 00 | 00 01 5a a8 ef 58 b6 a8 |........|..Z..X..| |00000060| ef 58 b6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.X......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 12 a7 00 00 |........|........| |00000080| 2f 2a 20 64 72 76 72 69 | 6e 63 6c 75 64 65 73 2e |/* drvri|ncludes.| |00000090| 68 20 32 2e 32 20 2d 20 | 70 61 72 74 20 6f 66 20 |h 2.2 - |part of | |000000a0| 50 65 74 65 20 52 65 73 | 6e 69 63 6b 27 73 20 64 |Pete Res|nick's d| |000000b0| 72 69 76 65 72 20 70 61 | 63 6b 61 67 65 20 2a 2f |river pa|ckage */| |000000c0| 0d 0d 23 69 66 6e 64 65 | 66 20 5f 5f 44 52 56 52 |..#ifnde|f __DRVR| |000000d0| 49 4e 43 4c 55 44 45 53 | 5f 5f 0d 23 64 65 66 69 |INCLUDES|__.#defi| |000000e0| 6e 65 20 5f 5f 44 52 56 | 52 49 4e 43 4c 55 44 45 |ne __DRV|RINCLUDE| |000000f0| 53 5f 5f 0d 0d 0d 2f 2a | 0d 20 2a 09 54 68 69 73 |S__.../*|. *.This| |00000100| 20 66 69 6c 65 20 63 75 | 73 74 6f 6d 69 7a 65 73 | file cu|stomizes| |00000110| 20 64 72 69 76 65 72 2e | 63 20 66 6f 72 20 79 6f | driver.|c for yo| |00000120| 75 72 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 2e 20 |ur envir|onment. | |00000130| 49 74 20 61 64 6a 75 73 | 74 73 20 66 6f 72 0d 20 |It adjus|ts for. | |00000140| 2a 09 64 69 66 66 65 72 | 65 6e 63 65 73 20 62 65 |*.differ|ences be| |00000150| 74 77 65 65 6e 20 4d 50 | 57 20 43 20 33 2e 78 2c |tween MP|W C 3.x,| |00000160| 20 54 48 49 4e 4b 20 43 | 20 34 2e 30 2e 78 2c 20 | THINK C| 4.0.x, | |00000170| 35 2e 30 2e 78 2c 20 61 | 6e 64 20 36 2e 30 2e 78 |5.0.x, a|nd 6.0.x| |00000180| 20 61 73 0d 20 2a 09 77 | 65 6c 6c 20 61 73 20 61 | as. *.w|ell as a| |00000190| 6c 6c 6f 77 20 79 6f 75 | 20 74 6f 20 63 68 61 6e |llow you| to chan| |000001a0| 67 65 20 74 68 65 20 72 | 65 73 6f 75 72 63 65 20 |ge the r|esource | |000001b0| 49 44 20 66 6f 72 20 74 | 68 65 20 54 48 49 4e 4b |ID for t|he THINK| |000001c0| 20 43 20 70 61 74 63 68 | 2e 0d 20 2a 09 59 6f 75 | C patch|.. *.You| |000001d0| 20 73 68 6f 75 6c 64 20 | 6f 6e 6c 79 20 6e 65 65 | should |only nee| |000001e0| 64 20 74 6f 20 63 68 61 | 6e 67 65 20 74 68 65 73 |d to cha|nge thes| |000001f0| 65 20 6e 65 78 74 20 66 | 69 76 65 20 6c 69 6e 65 |e next f|ive line| |00000200| 73 2e 20 49 66 20 79 6f | 75 20 61 72 65 0d 20 2a |s. If yo|u are. *| |00000210| 09 75 73 69 6e 67 20 4d | 50 57 2c 20 75 6e 63 6f |.using M|PW, unco| |00000220| 6d 6d 65 6e 74 20 74 68 | 65 20 66 69 72 73 74 20 |mment th|e first | |00000230| 6c 69 6e 65 20 61 6e 64 | 20 63 68 61 6e 67 65 20 |line and| change | |00000240| 74 68 65 20 76 65 72 73 | 69 6f 6e 20 6e 75 6d 62 |the vers|ion numb| |00000250| 65 72 0d 20 2a 09 74 6f | 20 74 68 65 20 6d 61 6a |er. *.to| the maj| |00000260| 6f 72 20 72 65 6c 65 61 | 73 65 20 62 65 69 6e 67 |or relea|se being| |00000270| 20 75 73 65 64 2c 20 61 | 6e 64 20 63 6f 6d 6d 65 | used, a|nd comme| |00000280| 6e 74 20 6f 75 74 20 74 | 68 65 20 54 48 49 4e 4b |nt out t|he THINK| |00000290| 5f 50 52 4f 43 20 61 6e | 64 0d 20 2a 09 4d 41 43 |_PROC an|d. *.MAC| |000002a0| 48 45 41 44 45 52 53 20 | 6c 69 6e 65 73 2e 20 49 |HEADERS |lines. I| |000002b0| 66 20 79 6f 75 20 61 72 | 65 20 75 73 69 6e 67 20 |f you ar|e using | |000002c0| 54 48 49 4e 4b 20 43 2c | 20 63 68 61 6e 67 65 20 |THINK C,| change | |000002d0| 74 68 65 20 54 48 49 4e | 4b 5f 50 52 4f 43 0d 20 |the THIN|K_PROC. | |000002e0| 2a 09 64 65 66 69 6e 69 | 74 69 6f 6e 20 74 6f 20 |*.defini|tion to | |000002f0| 74 68 65 20 72 65 73 6f | 75 72 63 65 20 49 44 20 |the reso|urce ID | |00000300| 79 6f 75 20 61 72 65 20 | 75 73 69 6e 67 20 66 6f |you are |using fo| |00000310| 72 20 54 68 69 6e 6b 50 | 72 6f 63 20 69 66 20 79 |r ThinkP|roc if y| |00000320| 6f 75 20 61 72 65 0d 20 | 2a 09 75 73 69 6e 67 20 |ou are. |*.using | |00000330| 73 6f 6d 65 74 68 69 6e | 67 20 64 69 66 66 65 72 |somethin|g differ| |00000340| 65 6e 74 20 74 68 61 6e | 20 31 32 38 20 61 6e 64 |ent than| 128 and| |00000350| 20 63 6f 6d 6d 65 6e 74 | 20 6f 72 20 75 6e 63 6f | comment| or unco| |00000360| 6d 6d 65 6e 74 20 74 68 | 65 20 6f 74 68 65 72 0d |mment th|e other.| |00000370| 20 2a 09 74 68 72 65 65 | 20 6c 69 6e 65 73 20 64 | *.three| lines d| |00000380| 65 70 65 6e 64 69 6e 67 | 20 6f 6e 20 79 6f 75 72 |epending| on your| |00000390| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2e 0d 20 2a | environ|ment.. *| |000003a0| 2f 0d 0d 2f 2a 20 23 64 | 65 66 69 6e 65 20 4d 50 |/../* #d|efine MP| |000003b0| 57 09 09 09 09 33 09 2f | 2a 20 55 73 69 6e 67 20 |W....3./|* Using | |000003c0| 4d 50 57 2c 20 63 68 61 | 6e 67 65 20 74 68 65 20 |MPW, cha|nge the | |000003d0| 76 65 72 73 69 6f 6e 20 | 6e 75 6d 62 65 72 20 74 |version |number t| |000003e0| 6f 20 73 75 69 74 20 2a | 2f 0d 23 64 65 66 69 6e |o suit *|/.#defin| |000003f0| 65 20 54 48 49 4e 4b 5f | 50 52 4f 43 09 09 31 32 |e THINK_|PROC..12| |00000400| 38 09 09 2f 2a 20 52 65 | 73 6f 75 72 63 65 20 49 |8../* Re|source I| |00000410| 44 20 66 6f 72 20 54 48 | 49 4e 4b 20 43 20 70 61 |D for TH|INK C pa| |00000420| 74 63 68 20 2a 2f 0d 23 | 64 65 66 69 6e 65 20 4d |tch */.#|define M| |00000430| 41 43 48 45 41 44 45 52 | 53 09 09 09 09 2f 2a 20 |ACHEADER|S..../* | |00000440| 55 73 69 6e 67 20 54 48 | 49 4e 4b 20 43 20 4d 61 |Using TH|INK C Ma| |00000450| 63 48 65 61 64 65 72 73 | 20 2a 2f 0d 2f 2a 20 23 |cHeaders| */./* #| |00000460| 64 65 66 69 6e 65 20 54 | 48 49 4e 4b 5f 34 5f 53 |define T|HINK_4_S| |00000470| 59 53 37 09 09 09 2f 2a | 20 55 73 69 6e 67 20 54 |YS7.../*| Using T| |00000480| 48 49 4e 4b 20 43 20 34 | 20 61 6e 64 20 53 79 73 |HINK C 4| and Sys| |00000490| 20 37 20 68 65 61 64 65 | 72 73 20 2a 2f 0d 2f 2a | 7 heade|rs */./*| |000004a0| 20 23 64 65 66 69 6e 65 | 20 53 59 53 45 51 55 5f | #define| SYSEQU_| |000004b0| 48 09 09 09 09 2f 2a 20 | 55 73 69 6e 67 20 53 79 |H..../* |Using Sy| |000004c0| 73 45 71 75 2e 68 20 69 | 6e 73 74 65 61 64 20 6f |sEqu.h i|nstead o| |000004d0| 66 20 4c 6f 4d 65 6d 2e | 68 20 2a 2f 0d 0d 2f 2a |f LoMem.|h */../*| |000004e0| 0d 20 2a 09 59 6f 75 20 | 73 68 6f 75 6c 64 6e 27 |. *.You |shouldn'| |000004f0| 74 20 6e 65 65 64 20 74 | 6f 20 63 68 61 6e 67 65 |t need t|o change| |00000500| 20 61 6e 79 74 68 69 6e | 67 20 62 65 6c 6f 77 20 | anythin|g below | |00000510| 68 65 72 65 21 21 21 21 | 21 0d 20 2a 2f 0d 0d 0d |here!!!!|!. */...| |00000520| 23 69 66 6e 64 65 66 20 | 54 48 49 4e 4b 5f 43 0d |#ifndef |THINK_C.| |00000530| 23 09 69 66 6e 64 65 66 | 20 53 59 53 45 51 55 5f |#.ifndef| SYSEQU_| |00000540| 48 0d 23 09 09 64 65 66 | 69 6e 65 20 53 59 53 45 |H.#..def|ine SYSE| |00000550| 51 55 5f 48 0d 23 09 65 | 6e 64 69 66 20 2f 2a 20 |QU_H.#.e|ndif /* | |00000560| 53 59 53 45 51 55 5f 48 | 20 2a 2f 0d 23 09 75 6e |SYSEQU_H| */.#.un| |00000570| 64 65 66 20 4d 41 43 48 | 45 41 44 45 52 53 0d 23 |def MACH|EADERS.#| |00000580| 65 6e 64 69 66 09 2f 2a | 20 54 48 49 4e 4b 5f 43 |endif./*| THINK_C| |00000590| 20 2a 2f 0d 0d 23 69 66 | 6e 64 65 66 20 4d 41 43 | */..#if|ndef MAC| |000005a0| 48 45 41 44 45 52 53 0d | 23 09 69 66 28 21 64 65 |HEADERS.|#.if(!de| |000005b0| 66 69 6e 65 64 28 54 48 | 49 4e 4b 5f 43 29 20 7c |fined(TH|INK_C) || |000005c0| 7c 20 28 54 48 49 4e 4b | 5f 43 20 3e 3d 20 35 29 || (THINK|_C >= 5)| |000005d0| 20 7c 7c 20 64 65 66 69 | 6e 65 64 28 54 48 49 4e | || defi|ned(THIN| |000005e0| 4b 5f 34 5f 53 59 53 37 | 29 29 0d 23 09 09 69 6e |K_4_SYS7|)).#..in| |000005f0| 63 6c 75 64 65 20 3c 44 | 65 76 69 63 65 73 2e 68 |clude <D|evices.h| |00000600| 3e 0d 23 09 09 69 6e 63 | 6c 75 64 65 20 3c 45 72 |>.#..inc|lude <Er| |00000610| 72 6f 72 73 2e 68 3e 0d | 23 09 09 69 6e 63 6c 75 |rors.h>.|#..inclu| |00000620| 64 65 20 3c 4d 65 6d 6f | 72 79 2e 68 3e 0d 23 09 |de <Memo|ry.h>.#.| |00000630| 09 69 6e 63 6c 75 64 65 | 20 3c 52 65 73 6f 75 72 |.include| <Resour| |00000640| 63 65 73 2e 68 3e 0d 23 | 09 09 69 6e 63 6c 75 64 |ces.h>.#|..includ| |00000650| 65 20 3c 54 6f 6f 6c 55 | 74 69 6c 73 2e 68 3e 0d |e <ToolU|tils.h>.| |00000660| 23 09 09 69 6e 63 6c 75 | 64 65 20 3c 54 72 61 70 |#..inclu|de <Trap| |00000670| 73 2e 68 3e 0d 23 09 09 | 69 66 64 65 66 20 53 59 |s.h>.#..|ifdef SY| |00000680| 53 45 51 55 5f 48 0d 23 | 09 09 09 69 6e 63 6c 75 |SEQU_H.#|...inclu| |00000690| 64 65 20 3c 53 79 73 45 | 71 75 2e 68 3e 0d 23 09 |de <SysE|qu.h>.#.| |000006a0| 09 65 6c 73 65 0d 23 09 | 09 09 69 6e 63 6c 75 64 |.else.#.|..includ| |000006b0| 65 20 3c 4c 6f 4d 65 6d | 2e 68 3e 0d 23 09 09 65 |e <LoMem|.h>.#..e| |000006c0| 6e 64 69 66 0d 23 09 65 | 6c 73 65 0d 23 09 09 69 |ndif.#.e|lse.#..i| |000006d0| 6e 63 6c 75 64 65 20 3c | 44 65 76 69 63 65 4d 67 |nclude <|DeviceMg| |000006e0| 72 2e 68 3e 0d 23 09 09 | 69 6e 63 6c 75 64 65 20 |r.h>.#..|include | |000006f0| 3c 46 69 6c 65 4d 67 72 | 2e 68 3e 0d 23 09 09 69 |<FileMgr|.h>.#..i| |00000700| 6e 63 6c 75 64 65 20 3c | 4d 61 63 54 79 70 65 73 |nclude <|MacTypes| |00000710| 2e 68 3e 0d 23 09 09 69 | 6e 63 6c 75 64 65 20 3c |.h>.#..i|nclude <| |00000720| 4d 65 6d 6f 72 79 4d 67 | 72 2e 68 3e 0d 23 09 09 |MemoryMg|r.h>.#..| |00000730| 69 6e 63 6c 75 64 65 20 | 3c 52 65 73 6f 75 72 63 |include |<Resourc| |00000740| 65 4d 67 72 2e 68 3e 0d | 23 09 09 69 6e 63 6c 75 |eMgr.h>.|#..inclu| |00000750| 64 65 20 3c 53 79 73 45 | 72 72 2e 68 3e 0d 23 09 |de <SysE|rr.h>.#.| |00000760| 09 64 65 66 69 6e 65 20 | 50 42 4f 70 65 6e 53 79 |.define |PBOpenSy| |00000770| 6e 63 28 78 29 20 50 42 | 4f 70 65 6e 28 78 2c 20 |nc(x) PB|Open(x, | |00000780| 66 61 6c 73 65 29 0d 23 | 09 09 64 65 66 69 6e 65 |false).#|..define| |00000790| 20 50 42 43 6c 6f 73 65 | 53 79 6e 63 28 78 29 20 | PBClose|Sync(x) | |000007a0| 50 42 43 6c 6f 73 65 28 | 78 2c 20 66 61 6c 73 65 |PBClose(|x, false| |000007b0| 29 0d 23 09 09 64 65 66 | 69 6e 65 20 50 42 43 6f |).#..def|ine PBCo| |000007c0| 6e 74 72 6f 6c 53 79 6e | 63 28 78 29 20 50 42 43 |ntrolSyn|c(x) PBC| |000007d0| 6f 6e 74 72 6f 6c 28 78 | 2c 20 66 61 6c 73 65 29 |ontrol(x|, false)| |000007e0| 0d 23 09 65 6e 64 69 66 | 0d 23 65 6e 64 69 66 0d |.#.endif|.#endif.| |000007f0| 0d 23 69 66 6e 64 65 66 | 20 6e 69 6c 0d 23 09 64 |.#ifndef| nil.#.d| |00000800| 65 66 69 6e 65 20 6e 69 | 6c 20 28 28 76 6f 69 64 |efine ni|l ((void| |00000810| 20 2a 29 20 30 4c 29 0d | 23 65 6e 64 69 66 0d 0d | *) 0L).|#endif..| |00000820| 23 69 66 64 65 66 20 53 | 59 53 45 51 55 5f 48 0d |#ifdef S|YSEQU_H.| |00000830| 23 09 64 65 66 69 6e 65 | 20 55 54 41 42 4c 45 42 |#.define| UTABLEB| |00000840| 41 53 45 09 28 2a 28 44 | 43 74 6c 48 61 6e 64 6c |ASE.(*(D|CtlHandl| |00000850| 65 20 2a 2a 29 55 54 61 | 62 6c 65 42 61 73 65 29 |e **)UTa|bleBase)| |00000860| 0d 23 09 64 65 66 69 6e | 65 20 55 4e 49 54 4e 54 |.#.defin|e UNITNT| |00000870| 52 59 43 4e 54 09 28 2a | 28 73 68 6f 72 74 20 2a |RYCNT.(*|(short *| |00000880| 29 55 6e 69 74 4e 74 72 | 79 43 6e 74 29 0d 23 65 |)UnitNtr|yCnt).#e| |00000890| 6c 73 65 0d 23 09 64 65 | 66 69 6e 65 20 55 54 41 |lse.#.de|fine UTA| |000008a0| 42 4c 45 42 41 53 45 09 | 55 54 61 62 6c 65 42 61 |BLEBASE.|UTableBa| |000008b0| 73 65 0d 23 09 64 65 66 | 69 6e 65 20 55 4e 49 54 |se.#.def|ine UNIT| |000008c0| 4e 54 52 59 43 4e 54 09 | 55 6e 69 74 4e 74 72 79 |NTRYCNT.|UnitNtry| |000008d0| 43 6e 74 0d 23 65 6e 64 | 69 66 0d 0d 23 69 66 6e |Cnt.#end|if..#ifn| |000008e0| 64 65 66 20 64 4f 70 65 | 6e 65 64 0d 23 09 64 65 |def dOpe|ned.#.de| |000008f0| 66 69 6e 65 20 64 4f 70 | 65 6e 65 64 09 09 30 78 |fine dOp|ened..0x| |00000900| 30 30 32 30 0d 23 65 6e | 64 69 66 20 2f 2a 20 64 |0020.#en|dif /* d| |00000910| 4f 70 65 6e 65 64 20 2a | 2f 0d 23 69 66 6e 64 65 |Opened *|/.#ifnde| |00000920| 66 20 64 52 41 4d 42 61 | 73 65 64 0d 23 09 64 65 |f dRAMBa|sed.#.de| |00000930| 66 69 6e 65 20 64 52 41 | 4d 42 61 73 65 64 09 30 |fine dRA|MBased.0| |00000940| 78 30 30 34 30 0d 23 65 | 6e 64 69 66 20 2f 2a 20 |x0040.#e|ndif /* | |00000950| 64 52 41 4d 42 61 73 65 | 64 20 2a 2f 0d 23 69 66 |dRAMBase|d */.#if| |00000960| 6e 64 65 66 20 6f 66 66 | 73 65 74 6f 66 0d 23 09 |ndef off|setof.#.| |00000970| 64 65 66 69 6e 65 20 6f | 66 66 73 65 74 6f 66 28 |define o|ffsetof(| |00000980| 66 69 65 6c 64 2c 74 79 | 70 65 29 20 28 28 75 6e |field,ty|pe) ((un| |00000990| 73 69 67 6e 65 64 20 6c | 6f 6e 67 29 26 28 28 28 |signed l|ong)&(((| |000009a0| 74 79 70 65 20 2a 29 30 | 4c 29 2d 3e 66 69 65 6c |type *)0|L)->fiel| |000009b0| 64 29 29 0d 23 65 6e 64 | 69 66 0d 0d 2f 2a 20 54 |d)).#end|if../* T| |000009c0| 68 69 73 20 73 74 72 75 | 63 74 75 72 65 20 75 73 |his stru|cture us| |000009d0| 65 64 20 69 6e 20 54 68 | 69 6e 6b 43 68 61 6e 67 |ed in Th|inkChang| |000009e0| 65 43 6f 64 65 20 61 6e | 64 20 54 68 69 6e 6b 43 |eCode an|d ThinkC| |000009f0| 6c 65 61 6e 75 70 20 2a | 2f 0d 74 79 70 65 64 65 |leanup *|/.typede| |00000a00| 66 20 73 74 72 75 63 74 | 20 7b 0d 09 73 68 6f 72 |f struct| {..shor| |00000a10| 74 20 69 6e 73 74 31 32 | 5b 32 5d 3b 0d 09 75 6e |t inst12|[2];..un| |00000a20| 69 6f 6e 20 7b 0d 09 09 | 73 68 6f 72 74 20 69 6e |ion {...|short in| |00000a30| 73 74 33 34 5b 32 5d 3b | 0d 09 09 52 65 73 54 79 |st34[2];|...ResTy| |00000a40| 70 65 20 74 68 65 54 79 | 70 65 3b 0d 09 7d 20 70 |pe theTy|pe;..} p| |00000a50| 31 3b 0d 09 75 6e 69 6f | 6e 20 7b 0d 09 09 52 65 |1;..unio|n {...Re| |00000a60| 73 54 79 70 65 20 74 68 | 65 54 79 70 65 3b 0d 09 |sType th|eType;..| |00000a70| 09 73 68 6f 72 74 20 69 | 6e 73 74 33 34 5b 32 5d |.short i|nst34[2]| |00000a80| 3b 0d 09 7d 20 70 32 3b | 0d 09 75 6e 69 6f 6e 20 |;..} p2;|..union | |00000a90| 7b 0d 09 09 73 68 6f 72 | 74 20 69 6e 73 74 35 36 |{...shor|t inst56| |00000aa0| 5b 32 5d 3b 0d 09 09 50 | 74 72 20 63 6f 64 65 50 |[2];...P|tr codeP| |00000ab0| 74 72 3b 0d 09 7d 20 70 | 33 3b 0d 09 73 68 6f 72 |tr;..} p|3;..shor| |00000ac0| 74 20 69 6e 73 74 37 3b | 0d 7d 20 43 6f 64 65 43 |t inst7;|.} CodeC| |00000ad0| 68 75 6e 6b 3b 0d 0d 2f | 2a 20 54 68 69 73 20 73 |hunk;../|* This s| |00000ae0| 74 72 75 63 74 75 72 65 | 20 75 73 65 64 20 69 6e |tructure| used in| |00000af0| 20 54 68 69 6e 6b 41 64 | 64 52 73 72 63 73 2c 20 | ThinkAd|dRsrcs, | |00000b00| 54 68 69 6e 6b 52 6d 76 | 52 73 72 63 73 2c 20 61 |ThinkRmv|Rsrcs, a| |00000b10| 6e 64 20 54 48 49 4e 4b | 5f 50 52 4f 43 20 2a 2f |nd THINK|_PROC */| |00000b20| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct | |00000b30| 7b 0d 09 48 61 6e 64 6c | 65 20 72 73 72 63 3b 0d |{..Handl|e rsrc;.| |00000b40| 09 52 65 73 54 79 70 65 | 20 74 79 70 3b 0d 09 73 |.ResType| typ;..s| |00000b50| 68 6f 72 74 20 69 64 3b | 0d 7d 20 52 73 72 63 52 |hort id;|.} RsrcR| |00000b60| 65 63 3b 0d 0d 2f 2a 0d | 20 2a 09 44 72 76 72 49 |ec;../*.| *.DrvrI| |00000b70| 6e 73 74 61 6c 6c 20 61 | 6e 64 20 44 72 76 72 52 |nstall a|nd DrvrR| |00000b80| 65 6d 6f 76 65 20 61 72 | 65 20 64 6f 63 75 6d 65 |emove ar|e docume| |00000b90| 6e 74 65 64 20 69 6e 20 | 54 65 63 68 6e 69 63 61 |nted in |Technica| |00000ba0| 6c 20 4e 6f 74 65 20 31 | 30 38 2e 0d 20 2a 09 44 |l Note 1|08.. *.D| |00000bb0| 69 73 61 62 6c 65 49 6e | 74 65 72 72 75 70 74 73 |isableIn|terrupts| |00000bc0| 20 61 6e 64 20 52 65 73 | 65 74 53 74 61 74 75 73 | and Res|etStatus| |00000bd0| 52 65 67 69 73 74 65 72 | 20 61 72 65 20 75 73 65 |Register| are use| |00000be0| 64 20 69 6e 74 65 72 6e | 61 6c 6c 79 20 69 6e 20 |d intern|ally in | |00000bf0| 47 72 6f 77 55 54 61 62 | 6c 65 2e 0d 20 2a 09 54 |GrowUTab|le.. *.T| |00000c00| 68 65 79 20 61 72 65 20 | 77 72 69 74 74 65 6e 20 |hey are |written | |00000c10| 61 73 20 69 6e 6c 69 6e | 65 20 63 6f 64 65 20 66 |as inlin|e code f| |00000c20| 6f 72 20 70 6f 72 74 61 | 62 69 6c 69 74 79 2e 20 |or porta|bility. | |00000c30| 54 48 49 4e 4b 20 43 20 | 35 20 6f 72 20 67 72 65 |THINK C |5 or gre| |00000c40| 61 74 65 72 20 61 6e 64 | 0d 20 2a 09 4d 50 57 20 |ater and|. *.MPW | |00000c50| 33 20 6f 72 20 67 72 65 | 61 74 65 72 20 63 61 6e |3 or gre|ater can| |00000c60| 20 75 73 65 20 74 68 65 | 20 22 23 70 72 61 67 6d | use the| "#pragm| |00000c70| 61 20 70 61 72 61 6d 65 | 74 65 72 22 20 64 69 72 |a parame|ter" dir| |00000c80| 65 63 74 69 76 65 2e 0d | 20 2a 2f 0d 23 69 66 28 |ective..| */.#if(| |00000c90| 28 64 65 66 69 6e 65 64 | 28 54 48 49 4e 4b 5f 43 |(defined|(THINK_C| |00000ca0| 29 20 26 26 20 54 48 49 | 4e 4b 5f 43 20 3e 3d 20 |) && THI|NK_C >= | |00000cb0| 35 29 20 7c 7c 20 28 64 | 65 66 69 6e 65 64 28 4d |5) || (d|efined(M| |00000cc0| 50 57 29 20 26 26 20 4d | 50 57 20 3e 3d 20 33 29 |PW) && M|PW >= 3)| |00000cd0| 29 0d 23 70 72 61 67 6d | 61 20 70 61 72 61 6d 65 |).#pragm|a parame| |00000ce0| 74 65 72 20 5f 5f 44 30 | 20 44 72 76 72 49 6e 73 |ter __D0| DrvrIns| |00000cf0| 74 61 6c 6c 28 5f 5f 41 | 30 2c 20 5f 5f 44 30 29 |tall(__A|0, __D0)| |00000d00| 0d 4f 53 45 72 72 20 44 | 72 76 72 49 6e 73 74 61 |.OSErr D|rvrInsta| |00000d10| 6c 6c 28 48 61 6e 64 6c | 65 20 64 72 76 72 48 61 |ll(Handl|e drvrHa| |00000d20| 6e 64 6c 65 2c 20 73 68 | 6f 72 74 20 72 65 66 4e |ndle, sh|ort refN| |00000d30| 75 6d 29 20 3d 20 7b 30 | 78 32 30 35 30 2c 30 78 |um) = {0|x2050,0x| |00000d40| 41 30 33 44 7d 3b 0d 23 | 70 72 61 67 6d 61 20 70 |A03D};.#|pragma p| |00000d50| 61 72 61 6d 65 74 65 72 | 20 5f 5f 44 30 20 44 72 |arameter| __D0 Dr| |00000d60| 76 72 52 65 6d 6f 76 65 | 28 5f 5f 44 30 29 0d 4f |vrRemove|(__D0).O| |00000d70| 53 45 72 72 20 44 72 76 | 72 52 65 6d 6f 76 65 28 |SErr Drv|rRemove(| |00000d80| 73 68 6f 72 74 20 72 65 | 66 4e 75 6d 29 20 3d 20 |short re|fNum) = | |00000d90| 30 78 41 30 33 45 3b 0d | 73 68 6f 72 74 20 44 69 |0xA03E;.|short Di| |00000da0| 73 61 62 6c 65 49 6e 74 | 65 72 72 75 70 74 73 28 |sableInt|errupts(| |00000db0| 76 6f 69 64 29 20 3d 20 | 7b 30 78 34 30 43 30 2c |void) = |{0x40C0,| |00000dc0| 30 78 34 36 46 43 2c 30 | 78 32 36 30 30 7d 3b 0d |0x46FC,0|x2600};.| |00000dd0| 23 70 72 61 67 6d 61 20 | 70 61 72 61 6d 65 74 65 |#pragma |paramete| |00000de0| 72 20 52 65 73 65 74 53 | 74 61 74 75 73 52 65 67 |r ResetS|tatusReg| |00000df0| 69 73 74 65 72 28 5f 5f | 44 30 29 0d 76 6f 69 64 |ister(__|D0).void| |00000e00| 20 52 65 73 65 74 53 74 | 61 74 75 73 52 65 67 69 | ResetSt|atusRegi| |00000e10| 73 74 65 72 28 73 68 6f | 72 74 20 6f 6c 64 53 52 |ster(sho|rt oldSR| |00000e20| 29 20 3d 20 30 78 34 36 | 43 30 3b 0d 23 65 6c 73 |) = 0x46|C0;.#els| |00000e30| 65 0d 70 61 73 63 61 6c | 20 4f 53 45 72 72 20 44 |e.pascal| OSErr D| |00000e40| 72 76 72 49 6e 73 74 61 | 6c 6c 28 48 61 6e 64 6c |rvrInsta|ll(Handl| |00000e50| 65 20 64 72 76 72 48 61 | 6e 64 6c 65 2c 20 73 68 |e drvrHa|ndle, sh| |00000e60| 6f 72 74 20 72 65 66 4e | 75 6d 29 0d 09 3d 20 7b |ort refN|um)..= {| |00000e70| 30 78 33 30 31 46 2c 30 | 78 32 30 35 46 2c 30 78 |0x301F,0|x205F,0x| |00000e80| 32 30 35 30 2c 30 78 41 | 30 33 44 2c 30 78 33 45 |2050,0xA|03D,0x3E| |00000e90| 38 30 7d 3b 0d 70 61 73 | 63 61 6c 20 4f 53 45 72 |80};.pas|cal OSEr| |00000ea0| 72 20 44 72 76 72 52 65 | 6d 6f 76 65 28 73 68 6f |r DrvrRe|move(sho| |00000eb0| 72 74 20 72 65 66 4e 75 | 6d 29 0d 09 3d 20 7b 30 |rt refNu|m)..= {0| |00000ec0| 78 33 30 31 46 2c 30 78 | 41 30 33 45 2c 30 78 33 |x301F,0x|A03E,0x3| |00000ed0| 45 38 30 7d 3b 0d 70 61 | 73 63 61 6c 20 73 68 6f |E80};.pa|scal sho| |00000ee0| 72 74 20 44 69 73 61 62 | 6c 65 49 6e 74 65 72 72 |rt Disab|leInterr| |00000ef0| 75 70 74 73 28 76 6f 69 | 64 29 20 3d 20 7b 30 78 |upts(voi|d) = {0x| |00000f00| 34 30 44 37 2c 30 78 34 | 36 46 43 2c 30 78 32 36 |40D7,0x4|6FC,0x26| |00000f10| 30 30 7d 3b 0d 70 61 73 | 63 61 6c 20 76 6f 69 64 |00};.pas|cal void| |00000f20| 20 52 65 73 65 74 53 74 | 61 74 75 73 52 65 67 69 | ResetSt|atusRegi| |00000f30| 73 74 65 72 28 73 68 6f | 72 74 20 6f 6c 64 53 52 |ster(sho|rt oldSR| |00000f40| 29 20 3d 20 7b 30 78 34 | 36 44 46 7d 3b 0d 23 65 |) = {0x4|6DF};.#e| |00000f50| 6e 64 69 66 0d 0d 23 65 | 6e 64 69 66 20 2f 2a 20 |ndif..#e|ndif /* | |00000f60| 5f 5f 44 52 56 52 49 4e | 43 4c 55 44 45 53 5f 5f |__DRVRIN|CLUDES__| |00000f70| 20 2a 2f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | */.....|........| |00000f80| 00 00 01 00 00 00 01 14 | 00 00 00 14 00 00 00 46 |........|.......F| |00000f90| 65 73 4c 69 73 74 00 1c | 00 00 36 4a 01 c5 00 1d |esList..|..6J....| |00000fa0| 95 5a 00 00 0d 2a 67 65 | 74 52 65 73 50 61 74 63 |.Z...*ge|tResPatc| |00000fb0| 0e 64 72 76 72 69 6e 63 | 6c 75 64 65 73 2e 68 64 |.drvrinc|ludes.hd| |00000fc0| 02 00 00 00 50 61 72 74 | 53 49 54 78 00 00 00 00 |....Part|SITx....| |00000fd0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......| |00000fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000ff0| 00 00 a9 80 18 34 00 00 | 00 00 00 00 01 5a 72 48 |.....4..|.....ZrH| |00001000| 61 6e 64 6c 65 20 00 28 | 00 00 48 59 02 57 00 1e |andle .(|..HY.W..| |00001010| 0b ca 00 00 19 2a 64 72 | 76 72 48 61 6e 64 6c 65 |.....*dr|vrHandle| |00001020| 20 2b 20 63 6f 64 65 4f | 66 66 73 65 74 20 00 1a | + codeO|ffset ..| |00001030| 00 00 49 65 02 66 00 1e | 0b ba 00 00 0b 63 6f 64 |..Ie.f..|.....cod| |00001040| 65 48 61 6e 64 6c 65 20 | 00 16 00 00 4a 36 02 6c |eHandle |....J6.l| |00001050| 00 1e 0b aa 00 00 07 4d | 65 6d 45 72 72 20 00 00 |.......M|emErr ..| |00001060| 00 08 00 09 04 43 6f 64 | 65 ff 00 00 00 04 00 06 |.....Cod|e.......| |00001070| 00 04 00 00 01 00 00 00 | 02 f2 00 00 01 f2 00 00 |........|........| |00001080| 00 00 00 04 00 06 00 04 | 00 00 00 08 00 09 04 43 |........|.......C| |00001090| 6f 64 65 00 00 00 01 00 | 00 00 01 14 00 00 00 14 |ode.....|........| |000010a0| 00 00 00 46 00 42 19 8c | 0c 7e 00 00 00 1c 00 46 |...F.B..|.~.....F| |000010b0| 00 01 45 54 41 42 00 00 | 00 12 45 46 4e 54 00 00 |..ETAB..|..EFNT..| |000010c0| 00 1e 03 ec ff ff 00 00 | 00 00 00 42 1b 2c 03 eb |........|...B.,..| |000010d0| ff ff 00 00 00 08 00 42 | 17 e8 00 00 00 00 00 00 |.......B|........| |000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000010f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+